package com.xuyaxu.redisson;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 使用Redisson实现Redis分布式锁功能
 *
 * @author xuyaxu
 * @date 2022/10/7 14:13
 */

@RestController
public class RedissonController {

    @Autowired
    SkillService skillService;

    @RequestMapping("/testSkillService")
    public void TestSkillService() {
        // 使用 jmeter 模拟高并发50接口调用场景
        skillService.seckill();
    }
}
